-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle non-default cargo target dir #10775
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this work w/o CARGO_TARGET_DIR
set?
122ef0c
to
bb4ceb0
Compare
Now it should for for both cases |
Makefile
Outdated
@@ -8,7 +8,7 @@ MDBX_PATH = "crates/storage/libmdbx-rs/mdbx-sys/libmdbx" | |||
DB_TOOLS_DIR = "db-tools" | |||
FULL_DB_TOOLS_DIR := $(shell pwd)/$(DB_TOOLS_DIR)/ | |||
|
|||
BUILD_PATH = "target" | |||
BUILD_PATH := $(if $(CARGO_TARGET_DIR),$(CARGO_TARGET_DIR),target) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a simple
BUILD_PATH := $(if $(CARGO_TARGET_DIR),$(CARGO_TARGET_DIR),target) | |
CARGO_TARGET_DIR ?= target |
should do, and then replace the BUILD_PATH
with CARGO_TARGET_DIR
everywhere below
bb4ceb0
to
0e0f483
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tysm for this!
Currently working from a Mac Mini with not so much internal storage, so using an external m.2 NVMe to store generated artifacts.
On main:
this pr: